﻿using System;
using System.Collections.Generic;
using System.IO;

namespace EpubTools
{
	class Program
	{
		static void Main(string[] args)
		{
			OpfMetadataUpdate.UpdateCoversForNook((args.Length > 0) ? args[0] : "H:\\My Files\\Books");
			//OpfMetadataUpdate.UpdateCoversForNook((args.Length > 0) ? args[0] : "C:\\Users\\ATimson\\Desktop\\testdir");
		}
	}

	class OpfMetadataUpdate
	{
		public static void UpdateCoversForNook(string bookPath)
		{
			foreach (string file in Directory.GetFiles(bookPath, "*.epub", System.IO.SearchOption.AllDirectories))
			{
				NookTools.updateCoverMetadata(file);
			}
		}
	}
}